hackerrank printing pattern using loops

visit shbcf.ru